{__NOLAYOUT__}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
	{include file="public/script" /}
	<style>
		.resiter_yan {position: absolute;right: 15px;top: 6.5px;width: 2rem;height: 2rem;}
		.resiter_yan1{display: none;}
	</style>
</head>
<body class="login_body">
	<div class="sectionH sectionH1 mui-clearfix">
		<header class="mui-bar mui-bar-nav" style="">
			<!--<a class="mui-icon mui-icon-left-nav mui-pull-left" href="javascript:history.back(-1)" style="color: #fff;"></a>-->
			<h1 class="mui-title">登录</h1>
			<!--<a class="mui-icon mui-pull-right right1" href="assets-1.html"><img src="images/icon_setting.png"/></a>-->
		</header>
	</div>
	<div class="kong1"></div>
	<div class="login_section1">
		<div class="container">
			<img src="__STATIC__/www/images/h_logo.png" alt="" />
		</div>
	</div>
	<div class="login_section2">
		<div class="container_2">
			<div class="fom">
				<form action="" method="post">
					<div class="f1 fx">
						<img src="__STATIC__/www/images/login_icon_user.png" class="img1"/>
						<input maxlength="11" type="text" class="mobile" name="mobile" id="" value="" placeholder="请填写手机号"/>
					</div>
					<div class="f1 ff">
						<img src="__STATIC__/www/images/login_icon_certification_code.png" class="img1"/>
						<input type="password" name="password" autocomplete="off" value="" placeholder="请填写密码"/>
						<img src="/static/www/images/register_icon_view_open.png" class="resiter_yan ">
						<img src="__STATIC__/www/images/register_icon_view_close.png" class="resiter_yan resiter_yan1"/>
					</div>
					<div class="f1 f2 fl mui-clearfix">
						<img src="__STATIC__/www/images/login_icon_certification_code.png" class="img1"/>
						<input type="text" name="captcha" autocomplete="off" value="" placeholder="请填写验证码"/>
						<span class="number_1">获取验证码</span>
					</div>
					<div class="sub">
						<input type="hidden" id="logintype" value="1" />
						<input type="submit" value="确定"/>
					</div>
					
				</form>
			</div>
			
		</div>
	</div>
	<div class="login_other">
		<div class="container_2">
			<div class="div1 mui-clearfix">
				<span class="s1 s4"></span>
				<span class="s2 login_s2">密码登录</span>
				<span class="s2 login_s3">验证码登录</span>
				<span class="s3 s4"></span>
			</div>
			<div class="div2 mui-clearfix">
				<p class="p1"><a href="{:url('Login/forget')}">忘记密码</a></p>
				<p class="p2"><a href="{:url('Login/register')}">新用户注册</a></p>
			</div>
		</div>
	</div>
</body>
</html>
<script>
    $('.sub').click(function () {

        if($('.mobile').val()==''){mui.alert('手机号不可为空！');return false;}

        var myreg={:config('tel_regular')};
        if (!myreg.test($('.mobile').val())) {
            mui.alert('请输入正确的手机号！');return false;
        }

        if($("#logintype").val()==1){
            //验证码登录
            if($('input[name=captcha]').val()==''){mui.alert('验证码不可为空！');return false;}
		}else{
            //密码登录
            if($('input[name=password]').val()==''){mui.alert('密码不可为空！');return false;}
		}

        $('.form').submit();

    });
</script>